Concatenate Generic Method

Wintellect PowerCollections

Collapse imageExpand ImageCollapseAll imageExpandAll imageDropDown imageDropDownHover imageCopy imageCopyHover image
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Concatenates all the items from several collections. The collections need not be of the same type, but must have the same item type.

Namespace: Wintellect.PowerCollections
Assembly:  PowerCollections (in PowerCollections.dll)

Syntax

C#
public static IEnumerable<T> Concatenate<T>(
	params IEnumerable<T>[] collections
)
Visual Basic (Declaration)
Public Shared Function Concatenate(Of T) ( _
	ParamArray collections As IEnumerable(Of T)() _
) As IEnumerable(Of T)
Visual C++
public:
generic<typename T>
static IEnumerable<T>^ Concatenate (
	... array<IEnumerable<T>^>^ collections
)

Parameters

collections
array<IEnumerable<(Of <T>)>>[]()
The set of collections to concatenate. In many languages, this parameter can be specified as several individual parameters.

Return Value

An IEnumerable that enumerates all the items in each of the collections, in order.

Type Parameters

T

See Also